﻿using Rail.Start.Viewer;

namespace Rail.Start.Controller
{
    class SaveAsEngineeringFormCommand : Base.BaseCommand
    {
        public override void Execute(PureMVC.Interfaces.INotification notification)
        {
            SaveAsEngineeringForm saef = new SaveAsEngineeringForm();
            SaveAsEngineeringFormMediator saefm = new SaveAsEngineeringFormMediator(saef);
            Facade.RemoveMediator(saefm.MediatorName);
            Facade.RegisterMediator(saefm);
            saef.ShowDialog();
        }
    }
}
